//
//  FrameType.m
//  FrameController
//
//  Created by Le Thanh Hai on 9/19/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "FrameType.h"


@implementation FrameType
@synthesize delegate;

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
    }
    return self;
}

- (id)initWithTypeName:(NSString*)type
{
    self = [super init];
    if (self) {
        // Initialization code
        frameType = [[NSString alloc] initWithFormat:@"%@", type];
    }
    return self;
}

-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
	if ([delegate respondsToSelector:@selector(TapWasFrameType:)]) {
		[delegate TapWasFrameType:frameType];
	}
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

- (void)dealloc
{
    [super dealloc];
}

@end
